/* ============================================================
   SCANNER MODAL (ANIMAÇÃO PONTO → LINHA → TELA)
   ============================================================ */
#scanner-dossie-final {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #04070a;
    z-index: 2000;
    opacity: 0;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scanner-dossie-final.estado-ponto {
    opacity: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 20px #00ff66;
    transition: all 0.2s;
}

#scanner-dossie-final.estado-linha {
    width: 100vw;
    height: 2px;
    border-radius: 0;
    background: #00ff66;
    transition: all 0.25s ease-out;
}

#scanner-dossie-final.estado-tela {
    width: 100vw;
    height: 100vh;
    background: #04070a;
    border: 2px solid #00ff66;
    transition: height 0.3s;
}

#dossie-conteudo-final {
    width: 90%;
    max-width: 500px;
    background: #0a0f18;
    border: 1px solid #2a4a6a;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    pointer-events: none;
    font-family: 'Courier New', monospace;
}

#scanner-dossie-final.estado-tela #dossie-conteudo-final {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dossie-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2a4a6a;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.dossie-header h2 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.dossie-tag {
    background: #00ff6620;
    color: #00ff66;
    padding: 2px 8px;
    font-size: 0.7rem;
    border: 1px solid #00ff66;
    font-family: 'Courier New', monospace;
}

.dossie-corpo {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #b0c4de;
    font-family: 'Courier New', monospace;
}

.dossie-metadata {
    font-size: 0.7rem;
    color: #7a9aba;
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #2a4a6a;
    font-family: 'Courier New', monospace;
}

.dossie-acoes {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a4a6a;
}

.btn-dossie-acao,
.btn-dossie-fechar {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.btn-dossie-acao {
    border-color: #00ff66;
    color: #00ff66;
}

.btn-dossie-acao:hover {
    background: #00ff66;
    color: #000;
}

.btn-dossie-fechar {
    border-color: #ff4444;
    color: #ff4444;
}

.btn-dossie-fechar:hover {
    background: #ff4444;
    color: #000;
}

.fade-out {
    opacity: 0.2 !important;
    transition: opacity 0.2s ease;
}